<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="/resource/bootstrap/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/jquery-3.2.1/jquery.js"></script>
<script type="text/javascript" src="/resource/js/jquery.validate.js"></script>
<script type="text/javascript" src="/resource/js/jqueryvalidate/localization/messages_zh.js"></script>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<div class="container">
	<div class="row" style="margin-top:150px">
		<div class="col-md-4"></div>
		<div class="col-md-4" style="border:solid;padding:10px">
			<form:form id="form" modelAttribute="user" method="post">
				
				<form:input path="username" remote="/user/checkuser"/>
				<form:errors path="username"></form:errors>
				<br>
				
				<form:password path="password"/>
				<form:errors path="password"></form:errors>
				<br/>
				<form:button>注册</form:button>
			</form:form>
		
		</div>
		<div class="col-md-4"></div>
	</div>
</div>
<script type="text/javascript">
$("#form").validate();
</script>
</body>
</html>